//
// Created by Kan Zheng on 14/05/2017.
//

#ifndef JVM_CPP_KAN_CLASSPATH_H
#define JVM_CPP_KAN_CLASSPATH_H

#include <string>
#include "Entry.h"

using namespace std;

string getJreDir(string jreOption);
bool exists(string file_path);

class Classpath {
public:
    Entry* bootClasspath;
    Entry* extClasspath;
    Entry* userClasspath;

    void parseBootAndExtClasspath(std::string jreOption);
    void parseUserClasspath(string cpOption);
};

Classpath* parse(string jreOption, string cpOption);
Entry* newWildcardEntry(string path);


#endif //JVM_CPP_KAN_CLASSPATH_H
